import requests, lxml.html

etree = lxml.html.etree
url = 'http://www.ygdy8.net/html/gndy/dyzz/list_23_1.html'


def main(url):
    response = requests.get(url)
    html = etree.HTML(response.text)
    url_list = html.xpath('//td[@height="26"]/b/a/@href')
    for i in url_list:
        url_ = 'http://www.ygdy8.net' + i
        print(url_)
        e_html = etree.HTML(requests.get(url_).content.decode('gbk'))
        list_ = e_html.xpath('//div[@id="Zoom"]//p/text()')
        print(list_)
        return


if __name__ == '__main__':
    main(url)
